#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
typedef int HPDateType;
typedef struct Heap
{
	HPDateType* _a;
	int _size;
	int _capacity;
}Heap;

void HeapInit(Heap* php, HPDateType* a, int n);
void HeapDestroy(Heap* php);
void HeapPush(Heap* php, HPDateType x);
void HeapPop(Heap* php);
HPDateType HeapTop(Heap* php);